<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>H+移动工作平台 - 差旅费报销申请</title>
  <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
  <link rel="stylesheet" href="../css/styles.css">
</head>
<body>
  <div class="device-container">
    <!-- 状态栏 -->
    <div class="status-bar">
      <div class="status-bar-left">
        <span class="time">9:41</span>
      </div>
      <div class="status-bar-right">
        <i class="fas fa-signal signal"></i>
        <i class="fas fa-wifi wifi"></i>
        <i class="fas fa-battery-full battery"></i>
      </div>
    </div>
    
    <!-- 导航栏 -->
    <div class="nav-bar">
      <div class="nav-left">
        <a href="travel_expense_form.html"><i class="fas fa-arrow-left"></i></a>
      </div>
      <div class="nav-title">差旅费报销申请</div>
      <div class="nav-right">
        <i class="fas fa-question-circle"></i>
      </div>
    </div>
    
    <!-- 内容区域 -->
    <div class="app-content">
      <!-- 步骤指示器 -->
      <div class="flex justify-between items-center px-4 py-3 bg-white">
        <div class="flex flex-col items-center">
          <div class="w-8 h-8 rounded-full bg-green-500 text-white flex items-center justify-center">
            <i class="fas fa-check"></i>
          </div>
          <span class="text-xs mt-1 text-green-500">基本信息</span>
        </div>
        <div class="flex-1 h-1 bg-gray-200 mx-2">
          <div class="h-full bg-blue-500" style="width: 100%"></div>
        </div>
        <div class="flex flex-col items-center">
          <div class="w-8 h-8 rounded-full bg-blue-500 text-white flex items-center justify-center">2</div>
          <span class="text-xs mt-1 text-blue-500">费用明细</span>
        </div>
        <div class="flex-1 h-1 bg-gray-200 mx-2">
          <div class="h-full bg-blue-500" style="width: 0%"></div>
        </div>
        <div class="flex flex-col items-center">
          <div class="w-8 h-8 rounded-full bg-gray-200 text-gray-500 flex items-center justify-center">3</div>
          <span class="text-xs mt-1 text-gray-500">提交</span>
        </div>
      </div>
      
      <!-- 表单 -->
      <form class="p-4">
        <!-- 费用明细卡片 -->
        <div class="card mb-4">
          <div class="card-header">
            <span>费用明细</span>
            <span class="text-sm text-gray-500">共6项 · 合计 ¥4,580.00</span>
          </div>
          <div class="card-body p-0">
            <!-- 费用项 1 -->
            <div class="list-item">
              <div>
                <div class="flex items-center">
                  <i class="fas fa-plane text-blue-500 mr-2"></i>
                  <span class="font-medium">往返机票</span>
                </div>
                <div class="text-xs text-gray-500 mt-1">
                  <span>2024-03-20 / 2024-03-23</span>
                </div>
              </div>
              <div class="text-right">
                <div class="font-medium">¥1,800.00</div>
                <div class="flex items-center text-xs text-gray-500 mt-1">
                  <i class="fas fa-receipt text-green-500 mr-1"></i> 
                  <span>已上传</span>
                  <i class="fas fa-edit text-blue-500 ml-2"></i>
                </div>
              </div>
            </div>
            
            <!-- 费用项 2 -->
            <div class="list-item">
              <div>
                <div class="flex items-center">
                  <i class="fas fa-hotel text-blue-500 mr-2"></i>
                  <span class="font-medium">酒店住宿</span>
                </div>
                <div class="text-xs text-gray-500 mt-1">
                  <span>2024-03-20 - 2024-03-23 (3晚)</span>
                </div>
              </div>
              <div class="text-right">
                <div class="font-medium">¥1,500.00</div>
                <div class="flex items-center text-xs text-gray-500 mt-1">
                  <i class="fas fa-receipt text-green-500 mr-1"></i> 
                  <span>已上传</span>
                  <i class="fas fa-edit text-blue-500 ml-2"></i>
                </div>
              </div>
            </div>
            
            <!-- 费用项 3 -->
            <div class="list-item">
              <div>
                <div class="flex items-center">
                  <i class="fas fa-utensils text-blue-500 mr-2"></i>
                  <span class="font-medium">餐饮费</span>
                </div>
                <div class="text-xs text-gray-500 mt-1">
                  <span>2024-03-20 - 2024-03-23</span>
                </div>
              </div>
              <div class="text-right">
                <div class="font-medium">¥600.00</div>
                <div class="flex items-center text-xs text-gray-500 mt-1">
                  <i class="fas fa-receipt text-green-500 mr-1"></i> 
                  <span>已上传</span>
                  <i class="fas fa-edit text-blue-500 ml-2"></i>
                </div>
              </div>
            </div>
            
            <!-- 费用项 4 -->
            <div class="list-item">
              <div>
                <div class="flex items-center">
                  <i class="fas fa-taxi text-blue-500 mr-2"></i>
                  <span class="font-medium">市内交通</span>
                </div>
                <div class="text-xs text-gray-500 mt-1">
                  <span>2024-03-20 - 2024-03-23</span>
                </div>
              </div>
              <div class="text-right">
                <div class="font-medium">¥280.00</div>
                <div class="flex items-center text-xs text-gray-500 mt-1">
                  <i class="fas fa-receipt text-green-500 mr-1"></i> 
                  <span>已上传</span>
                  <i class="fas fa-edit text-blue-500 ml-2"></i>
                </div>
              </div>
            </div>
            
            <!-- 费用项 5 -->
            <div class="list-item">
              <div>
                <div class="flex items-center">
                  <i class="fas fa-file-invoice-dollar text-blue-500 mr-2"></i>
                  <span class="font-medium">会议注册费</span>
                </div>
                <div class="text-xs text-gray-500 mt-1">
                  <span>2024-03-21 - 2024-03-22</span>
                </div>
              </div>
              <div class="text-right">
                <div class="font-medium">¥300.00</div>
                <div class="flex items-center text-xs text-gray-500 mt-1">
                  <i class="fas fa-receipt text-green-500 mr-1"></i> 
                  <span>已上传</span>
                  <i class="fas fa-edit text-blue-500 ml-2"></i>
                </div>
              </div>
            </div>
            
            <!-- 费用项 6 -->
            <div class="list-item">
              <div>
                <div class="flex items-center">
                  <i class="fas fa-shopping-bag text-blue-500 mr-2"></i>
                  <span class="font-medium">其他费用</span>
                </div>
                <div class="text-xs text-gray-500 mt-1">
                  <span>资料打印、礼品等</span>
                </div>
              </div>
              <div class="text-right">
                <div class="font-medium">¥100.00</div>
                <div class="flex items-center text-xs text-gray-500 mt-1">
                  <i class="fas fa-receipt text-green-500 mr-1"></i> 
                  <span>已上传</span>
                  <i class="fas fa-edit text-blue-500 ml-2"></i>
                </div>
              </div>
            </div>
            
            <!-- 总计 -->
            <div class="p-4 border-t">
              <div class="flex justify-between items-center">
                <div class="font-medium">费用总计</div>
                <div class="text-lg font-medium text-blue-500">¥4,580.00</div>
              </div>
            </div>
          </div>
        </div>
        
        <!-- 添加费用按钮 -->
        <button type="button" class="btn btn-outline w-full mb-4 flex items-center justify-center" data-toggle="modal" data-target="#addExpenseModal">
          <i class="fas fa-plus mr-2"></i>
          <span>添加费用</span>
        </button>
        
        <!-- 备注 -->
        <div class="card mb-4">
          <div class="card-header">
            <span>备注</span>
          </div>
          <div class="card-body">
            <textarea class="form-input" rows="3" placeholder="请输入备注信息（选填）"></textarea>
          </div>
        </div>
        
        <!-- 按钮 -->
        <div class="flex space-x-4 mb-4">
          <button type="button" class="btn btn-outline flex-1">上一步</button>
          <button type="button" class="btn btn-primary flex-1" onclick="location.href='travel_expense_form_step3.html'">下一步</button>
        </div>
      </form>
    </div>
    
    <!-- 添加费用模态框 -->
    <div class="modal" id="addExpenseModal">
      <div class="modal-backdrop"></div>
      <div class="modal-container">
        <div class="modal-header">
          <h3 class="modal-title">添加费用</h3>
          <button class="modal-close">&times;</button>
        </div>
        <div class="modal-body">
          <div class="form-group">
            <label class="form-label">费用类型 <span class="text-red-500">*</span></label>
            <div class="relative">
              <select class="form-input pr-8">
                <option value="">请选择费用类型</option>
                <option value="plane">往返机票</option>
                <option value="hotel">酒店住宿</option>
                <option value="meal">餐饮费</option>
                <option value="transport">市内交通</option>
                <option value="meeting">会议注册费</option>
                <option value="other">其他费用</option>
              </select>
              <i class="fas fa-chevron-down absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
            </div>
          </div>
          
          <div class="form-group">
            <label class="form-label">费用日期 <span class="text-red-500">*</span></label>
            <div class="flex items-center">
              <div class="relative flex-1">
                <input type="date" class="form-input" placeholder="开始日期">
                <i class="fas fa-calendar absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
              </div>
              <span class="mx-2">至</span>
              <div class="relative flex-1">
                <input type="date" class="form-input" placeholder="结束日期">
                <i class="fas fa-calendar absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400"></i>
              </div>
            </div>
          </div>
          
          <div class="form-group">
            <label class="form-label">金额 <span class="text-red-500">*</span></label>
            <div class="relative">
              <input type="number" class="form-input pl-8" placeholder="请输入金额">
              <span class="absolute left-3 top-1/2 transform -translate-y-1/2 text-gray-500">¥</span>
            </div>
          </div>
          
          <div class="form-group">
            <label class="form-label">费用说明</label>
            <textarea class="form-input" rows="2" placeholder="请输入费用说明"></textarea>
          </div>
          
          <div class="form-group">
            <label class="form-label">上传发票 <span class="text-red-500">*</span></label>
            <div class="border border-dashed border-gray-300 rounded-lg p-4 text-center">
              <i class="fas fa-cloud-upload-alt text-gray-400 text-2xl"></i>
              <p class="text-sm text-gray-500 mt-2">点击上传或拖拽文件至此处</p>
              <p class="text-xs text-gray-400 mt-1">支持JPG、PNG、PDF格式，单个文件不超过10MB</p>
              <input type="file" class="hidden" id="fileUpload">
              <button type="button" class="btn btn-outline btn-sm mt-2" onclick="document.getElementById('fileUpload').click()">选择文件</button>
            </div>
          </div>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-outline" data-dismiss="modal">取消</button>
          <button type="button" class="btn btn-primary">确认添加</button>
        </div>
      </div>
    </div>
    
    <!-- 底部标签栏 -->
    <div class="tab-bar">
      <a href="home.html" class="tab-item">
        <i class="fas fa-home tab-icon"></i>
        <span>首页</span>
      </a>
      <a href="asset.html" class="tab-item">
        <i class="fas fa-laptop tab-icon"></i>
        <span>资产</span>
      </a>
      <a href="finance.html" class="tab-item active">
        <i class="fas fa-wallet tab-icon"></i>
        <span>财务</span>
      </a>
      <a href="material.html" class="tab-item">
        <i class="fas fa-box tab-icon"></i>
        <span>物资</span>
      </a>
      <a href="profile.html" class="tab-item">
        <i class="fas fa-user tab-icon"></i>
        <span>我的</span>
      </a>
    </div>
  </div>
</body>
</html> 